package routers

import (
	"ginBolg/api"
	"ginBolg/middleware"
)

func (router RouterGroup) AdvertRouter() {
	app := api.ApiGroupApp.AdvertApi
	router.POST("advert", middleware.JwtAuth(), app.AdvertCreateView)
	router.GET("advert", middleware.JwtAuth(), app.AdvertListView)
	router.PUT("advert", middleware.JwtAuth(), app.AdvertUpdateView)
	router.DELETE("advert", middleware.JwtAuth(), app.AdvertRemoveView)
}
